package com.example.designPattern.absfactory.abspizza;

import com.example.designPattern.factory.pizza.Pizza;

public class LdChinesePizza extends Pizza {
    private String name;

    public LdChinesePizza(){
        this.name = "ld  pizza";
    }
    @Override
    public String prepare() {
        System.out.println(name + " prepare");
        return name + " prepare";
    }

    @Override
    public String bake() {
        System.out.println(name + " bake");
        return name + " bake";
    }

    @Override
    public String box() {
        System.out.println(name + " box");
        return name + " box";
    }

    @Override
    public String cut() {
        System.out.println(name + " cut");
        return name + " cut";
    }

    public void setName(String name) {
        this.name = "中国 Chinese pizza";
    }
}
